package com.starleague.battletech.unit;

import java.util.Map;

import com.starleague.common.AbstractHasInfoProperties;

public class AbstractPilot
        extends AbstractHasInfoProperties
        implements IMutablePilot
{
    private int pilotingSkill;

    protected AbstractPilot(int pilotingSkill)
    {
        this.pilotingSkill = pilotingSkill;
    }

    @Override
    public int getPilotingSkill()
    {
        return this.pilotingSkill;
    }

    @Override
    public void setPilotingSkill(int pilotingSkill)
    {
        this.pilotingSkill = pilotingSkill;
    }

    @Override
    public Map<String, Object> infoProperties()
    {
        Map<String, Object> infoPropertyMap = super.infoProperties();
        infoPropertyMap.put("pilotingSkill", this.pilotingSkill);
        return infoPropertyMap;
    }
}
